package com.weixin.paleituo.adapter;

import android.content.Context;
import android.widget.ImageView;
import android.widget.TextView;

import com.weixin.paleituo.R;
import com.weixin.paleituo.base.ComAdapter;
import com.weixin.paleituo.bean.ProductListBean;
import com.weixin.paleituo.help.ViewHolder;

import java.util.List;

/**
 * Author yichao
 * Time  2018/6/11 14:43
 * Dest  物业
 */

public class WuyeGrideAdapter extends ComAdapter<ProductListBean> {
    public WuyeGrideAdapter(Context mContext, List<ProductListBean> mData) {
        super(mContext, mData, R.layout.layout_item_wuye_icon);
    }

    @Override
    public void convert(ViewHolder holder, ProductListBean item, int position) {
      ImageView imageView= holder.getItemView(R.id.imgUrl);
     TextView textView= holder.getItemView(R.id.proName);
      imageView.setImageResource(item.getImgUrl());
        textView.setText(item.getProName());


    }
}
